f = open(r"2.txt","w");

for i in range(5000):
    print i;
    f.write("a");
f.close()



with open('ss.jpg','wb') as f:
    f.write(r.content)
    
# 按行读取大文件
with open("path", 'r') as f:
    for line in f:
      # print(line)
      data_array = line.split("----")
      user = data_array[0].strip()
      password = data_array[1]
      cu.execute('replace into netease_users values(?,?,?)',(None, user, password))
